/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表
export const getList = (params) => axios.post(`${SERVER.WHOLESALES}/tmVsSubWarehouse/listRecord`, params)
// 获取详情
export const getDetail = (params) => axios.get(`${SERVER.WHOLESALES}/tmVsSubWarehouse/getById`, { params })
// 新增
export const addOrUpdate = (params) => axios.post(`${SERVER.WHOLESALES}/tmVsSubWarehouse/addOrUpdate`, params)
// 启用/禁用
export const postlocked = (params) => axios.post(`${SERVER.WHOLESALES}/tmVsSubWarehouse/locked`, params)
// 上级仓库列表
export const getWarehouseList = (params) => axios.get(`${SERVER.WHOLESALES}/tmVsSubWarehouse/getWarehouseList`, {params})
